//
//  LoginBaseViewController.m
//  舟航007机车卫士
//
//  Created by admin on 15/11/9.
//  Copyright (c) 2015年 redoor. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController
@synthesize leftbtn,centerbtn,rightbtn,navbackview;

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    navbackview=[[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 20+44*H)];
    navbackview.backgroundColor=[UIColor colorWithRed:(CGFloat)21/255 green:(CGFloat)124/255 blue:(CGFloat)244/255 alpha:1.0];
    leftbtn=[[CustomButton alloc]initWithFrame:CGRectMake(10*W, 20+5*H, 70*W, 30*H)];
    [leftbtn setImage:[UIImage imageNamed:@"back01"] forState:UIControlStateNormal];
    
    
    centerbtn=[[CustomButton alloc]initWithFrame:CGRectMake((SCREEN_WIDTH-100*W)/2, 20+10*H, 100*W, 20*H)];
    [centerbtn setImage:[UIImage imageNamed:@"top_icon01"] forState:UIControlStateNormal];
    [centerbtn setTitle:@"实施位置" forState:UIControlStateNormal];
    centerbtn.titleLabel.font=[UIFont systemFontOfSize:19];
    rightbtn=[[CustomButton alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-95*W, 20+10*H, 90*W, 20*H)];
    
    [rightbtn setImage:[UIImage imageNamed:@"top_icon01"] forState:UIControlStateNormal];
    [rightbtn setTitle:@"实施位置" forState:UIControlStateNormal];
    rightbtn.titleLabel.font=[UIFont systemFontOfSize:14];
    
    [self.view addSubview:navbackview];
    [navbackview addSubview:leftbtn];
    [navbackview addSubview:centerbtn];
    [navbackview addSubview:rightbtn];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
